.swipe-card-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-stack {
  position: relative;
  width: 423rpx; // 卡片宽度
  height: 640rpx; // 卡片高度


  .card-item {
    position: absolute;
    top: 15%;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 30px;

    //box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    // 变换原点设为底部中间，会有更好的堆叠动画
    //transform-origin: 50% 100%;
    .card-img {
      width: 100%;
      height: 100%;
      display: block;
      border-radius: 30rpx;
    }
  }

  .current {
    z-index: 3;
    will-change: transform;
    backface-visibility: hidden; /* 改善渲染性能 */
    transform-style: preserve-3d;
  }

  .next {
    z-index: 2;
    // 初始状态
    .card-img {
      transform: rotate(10deg) scale(0.9);
      transform-origin: right bottom;
      opacity: 0.8;
    }
  }

  .two {
    z-index: 0;

    .card-img {
      transform: rotate(-10deg) scale(0.9);
      transform-origin: left bottom;
      opacity: 0.8;
    }
  }

  @keyframes fadeInOut {
    0% {
      opacity: 1;
    }
    20% {
      opacity: 0.8;
    }
    40% {
      opacity: 0.6;
    }
    60% {
      opacity: 0.4;
    }
    80% {
      opacity: 0.2;
    }
    100% {
      opacity: 0;
    }
  }

  /* 覆盖层提示 */
  .overlay-tip {
    position: absolute;
    top: 10%;
    left: -19%;
    width: 138%;
    height: 110%;
    display: flex;
    justify-content: center;
    pointer-events: none;
    z-index: 3;
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.4);
    animation: fadeInOut 3s ease-in-out forwards;

    .tip-content {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      color: #fff;
      text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    }

    .arrow-icon {
      font-size: 80px;
      font-weight: bold;
      margin-bottom: 4px;
      // 左右摇摆动画
      animation: swingArrow 1.5s ease-in-out infinite;
    }

    .tip-text {
      font-size: 18px;
      font-weight: 600;
      letter-spacing: 1px;
    }
  }
}


@keyframes swingArrow {
  0%, 100% {
    transform: translateX(5px);
  }
  50% {
    transform: translateX(-15px);
  }
}

/* 底部信息遮罩 */
.card-info-mask {
  .nickname {
    font-size: 40rpx;
    font-weight: bold;
    margin: 30rpx 0;
  }

  .addressBox {
    height: 40rpx;
    line-height: 40rpx;

    .addressIcon {
      vertical-align: middle;
    }

    .address {
      font-size: 28rpx;
      margin-left: 10rpx;
      color: #4A4949;
    }
  }

  .aboutus {
    margin: 10rpx 0;
    font-size: 28rpx;
    color: #828282;
  }

  .infoBnt {
    margin-top: 40rpx;
    background: linear-gradient(135deg, #C98DEE, #AD51E8);
    width: 220rpx;
    height: 80rpx;
    line-height: 80rpx;
    border-radius: 40rpx;
    font-size: 24rpx;
    color: #fff;

  }
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  .empty-text {
    color: #999;
    font-size: 14px;
    margin-bottom: 20px;
  }

  .btn-reload {
    padding: 12px 32px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: #fff;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);

    &:active {
      transform: scale(0.96);
    }
  }
}